<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>兴趣交友匹配 - 精准找到志同道合的朋友</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #7209b7;
            --secondary: #3f37c9;
            --accent: #4895ef;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --success: #4cc9f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.8rem 1rem;
        }
        
        .navbar-brand {
            color: var(--primary);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.4rem;
        }
        
        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin: 0 5px;
            transition: var(--transition);
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        .main-container {
            padding: 2rem 0;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }
        
        .section-desc {
            color: var(--gray);
            max-width: 800px;
        }
        
        /* 筛选区域样式 */
        .filters-container {
            background-color: white;
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
        }
        
        .filter-section {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .filter-section:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .filter-title i {
            color: var(--primary);
        }
        
        .tag-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .tag-filter {
            padding: 0.5rem 1.2rem;
            border-radius: 20px;
            background-color: var(--light);
            border: 1px solid var(--light-gray);
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .tag-filter.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .tag-filter:hover:not(.active) {
            background-color: var(--light-gray);
        }
        
        .range-slider {
            width: 100%;
            margin: 1rem 0;
        }
        
        .range-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .form-check {
            margin-bottom: 0.75rem;
        }
        
        .form-check-input:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .btn-reset {
            background-color: var(--light);
            color: var(--dark);
            border: 1px solid var(--light-gray);
        }
        
        .btn-reset:hover {
            background-color: var(--light-gray);
        }
        
        .btn-apply {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        .btn-apply:hover {
            background-color: var(--secondary);
        }
        
        /* 结果展示样式 */
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .results-count {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .sort-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .sort-label {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .sort-select {
            font-size: 0.9rem;
            padding: 0.375rem 0.75rem;
        }
        
        /* 交友卡片样式 */
        .card {
            border: none;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            margin-bottom: 1.5rem;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .card-body {
            padding: 1.2rem;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 1rem;
        }
        
        .avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--light-gray);
        }
        
        .user-details {
            flex: 1;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 3px;
        }
        
        .user-meta {
            font-size: 0.85rem;
            color: var(--gray);
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 5px;
        }
        
        .match-badge {
            background-color: rgba(76, 201, 240, 0.15);
            color: #3a86ff;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .user-bio {
            color: var(--dark);
            font-size: 0.95rem;
            margin-bottom: 1rem;
            line-height: 1.5;
        }
        
        .interests {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 1rem;
        }
        
        .interest-tag {
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .interest-tag.common {
            background-color: rgba(76, 201, 240, 0.2);
            color: #3a86ff;
            border: 1px dashed #3a86ff;
        }
        
        .contact-actions {
            display: flex;
            gap: 1rem;
        }
        
        .btn-message {
            background-color: var(--light);
            color: var(--primary);
            border: 1px solid var(--primary);
        }
        
        .btn-message:hover {
            background-color: rgba(67, 97, 238, 0.1);
        }
        
        .btn-friend {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        .btn-friend:hover {
            background-color: var(--secondary);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.5rem;
            }
            
            .filter-actions {
                flex-direction: column;
            }
            
            .filter-actions .btn {
                width: 100%;
            }
            
            .results-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .tag-filter {
                padding: 0.4rem 0.9rem;
                font-size: 0.85rem;
            }
            
            .user-info {
                flex-direction: column;
                align-items: flex-start;
            }
        }
        
        /* 分页样式 */
        .pagination {
            margin-top: 2rem;
            justify-content: center;
        }
        
        .page-item .page-link {
            color: var(--primary);
            border-color: var(--light-gray);
            margin: 0 3px;
            border-radius: 6px;
        }
        
        .page-item.active .page-link {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        /* 页脚样式 */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 3rem;
        }
        
        .footer-col {
            margin-bottom: 2rem;
        }
        
        .footer-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.5rem;
        }
        
        .footer-links a {
            color: var(--light-gray);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--light-gray);
            font-size: 0.9rem;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-users"></i>
                <span>友趣</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">交友匹配</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣小组</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">活动中心</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">消息</a>
                    </li>
                </ul>
                
                <div class="d-flex align-items-center gap-3">
                    <div class="dropdown">
                        <button class="btn btn-secondary dropdown-toggle rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/40/40" alt="用户头像" width="36" height="36" class="rounded-circle">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人主页</a></li>
                            <li><a class="dropdown-item" href="#">我的好友</a></li>
                            <li><a class="dropdown-item" href="#">设置</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container main-container">
        <div class="section-header">
            <h1 class="section-title">兴趣交友匹配</h1>
            <p class="section-desc">通过多种筛选条件，找到最适合你的志同道合的朋友。选择你的兴趣爱好、偏好和条件，我们会为你推荐最匹配的用户。</p>
        </div>
        
        <div class="row">
            <!-- 筛选侧边栏 -->
            <div class="col-lg-3 col-md-4 mb-4">
                <div class="filters-container sticky-top" style="top: 20px;">
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-search"></i> 兴趣类别
                        </h3>
                        <div class="tag-filters">
                            <div class="tag-filter active">
                                <i class="fas fa-music"></i> 音乐
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-film"></i> 电影
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-book"></i> 阅读
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-hiking"></i> 户外
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-utensils"></i> 美食
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-camera"></i> 摄影
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-gamepad"></i> 游戏
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-paint-brush"></i> 艺术
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-running"></i> 运动
                            </div>
                            <div class="tag-filter">
                                <i class="fas fa-code"></i> 编程
                            </div>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-sliders-h"></i> 匹配度
                        </h3>
                        <input type="range" min="0" max="100" value="70" class="form-range range-slider" id="matchRange">
                        <div class="range-labels">
                            <span>0%</span>
                            <span id="rangeValue">70% 及以上</span>
                            <span>100%</span>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-map-marker-alt"></i> 地理位置
                        </h3>
                        <div class="form-check">
                            <input class="form-check-input" type="radio" name="location" id="locationAny" checked>
                            <label class="form-check-label" for="locationAny">
                                不限
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="radio" name="location" id="locationCity">
                            <label class="form-check-label" for="locationCity">
                                同城
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="radio" name="location" id="locationProvince">
                            <label class="form-check-label" for="locationProvince">
                                同省份
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="radio" name="location" id="locationDistance">
                            <label class="form-check-label" for="locationDistance">
                                自定义距离
                            </label>
                        </div>
                        <div class="mt-2" id="distanceSlider" style="display: none;">
                            <input type="range" min="1" max="100" value="50" class="form-range range-slider">
                            <div class="range-labels">
                                <span>1km</span>
                                <span>50km 以内</span>
                                <span>100km</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-user"></i> 个人条件
                        </h3>
                        <div class="row g-2 mb-3">
                            <div class="col-6">
                                <label class="form-label" style="font-size: 0.9rem;">年龄范围</label>
                                <select class="form-select form-select-sm">
                                    <option>18-25岁</option>
                                    <option selected>26-35岁</option>
                                    <option>36-45岁</option>
                                    <option>46-55岁</option>
                                    <option>55岁以上</option>
                                </select>
                            </div>
                            <div class="col-6">
                                <label class="form-label" style="font-size: 0.9rem;">性别</label>
                                <select class="form-select form-select-sm">
                                    <option selected>不限</option>
                                    <option>男</option>
                                    <option>女</option>
                                </select>
                            </div>
                        </div>
                        
                        <label class="form-label" style="font-size: 0.9rem; margin-bottom: 0.5rem;">活跃度</label>
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" id="activeDaily" checked>
                            <label class="form-check-label" for="activeDaily">
                                每天活跃
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" id="activeWeekly" checked>
                            <label class="form-check-label" for="activeWeekly">
                                每周活跃
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" id="activeMonthly">
                            <label class="form-check-label" for="activeMonthly">
                                每月活跃
                            </label>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-tags"></i> 细分兴趣
                        </h3>
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" id="interest1" checked>
                            <label class="form-check-label" for="interest1">
                                独立音乐
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" id="interest2" checked>
                            <label class="form-check-label" for="interest2">
                                古典音乐
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" id="interest3">
                            <label class="form-check-label" for="interest3">
                                爵士乐
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" id="interest4">
                            <label class="form-check-label" for="interest4">
                                摇滚乐
                            </label>
                        </div>
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" id="interest5">
                            <label class="form-check-label" for="interest5">
                                电子音乐
                            </label>
                        </div>
                        <button class="btn btn-sm btn-link text-primary p-0 mt-1" id="showMoreInterests">
                            显示更多 <i class="fas fa-chevron-down"></i>
                        </button>
                    </div>
                    
                    <div class="filter-actions">
                        <button class="btn btn-reset">
                            <i class="fas fa-sync-alt"></i> 重置筛选
                        </button>
                        <button class="btn btn-apply">
                            <i class="fas fa-filter"></i> 应用筛选
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 结果展示区域 -->
            <div class="col-lg-9 col-md-8">
                <div class="results-header">
                    <div class="results-count">找到 <strong>24</strong> 位符合条件的用户</div>
                    <div class="sort-controls">
                        <span class="sort-label">排序方式:</span>
                        <select class="form-select form-select-sm sort-select">
                            <option selected>匹配度从高到低</option>
                            <option>最近活跃</option>
                            <option>共同兴趣最多</option>
                            <option>加入时间最新</option>
                        </select>
                    </div>
                </div>
                
                <!-- 交友推荐列表 -->
                <div class="row">
                    <!-- 用户1 -->
                    <div class="col-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="user-info">
                                    <img src="https://picsum.photos/id/1012/200/200" alt="用户头像" class="avatar">
                                    <div class="user-details">
                                        <div class="user-name">李明 <span class="match-badge">匹配度 94%</span></div>
                                        <div class="user-meta">
                                            <span><i class="fas fa-map-marker-alt me-1"></i> 北京市</span>
                                            <span><i class="fas fa-birthday-cake me-1"></i> 28岁</span>
                                            <span><i class="fas fa-clock me-1"></i> 今天活跃</span>
                                        </div>
                                        <p class="user-bio">音乐制作人，喜欢独立音乐和现场演出，每周都会去不同的livehouse。希望认识同样喜欢音乐的朋友，一起交流创作或看演出。</p>
                                        
                                        <div class="interests">
                                            <span class="interest-tag common">独立音乐</span>
                                            <span class="interest-tag common">现场演出</span>
                                            <span class="interest-tag">音乐制作</span>
                                            <span class="interest-tag">吉他</span>
                                            <span class="interest-tag common">黑胶唱片</span>
                                            <span class="interest-tag">音乐 festivals</span>
                                        </div>
                                        
                                        <div class="contact-actions">
                                            <button class="btn btn-message">
                                                <i class="fas fa-comment"></i> 发消息
                                            </button>
                                            <button class="btn btn-friend">
                                                <i class="fas fa-user-plus"></i> 加为好友
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 用户2 -->
                    <div class="col-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="user-info">
                                    <img src="https://picsum.photos/id/1027/200/200" alt="用户头像" class="avatar">
                                    <div class="user-details">
                                        <div class="user-name">张小艺 <span class="match-badge">匹配度 89%</span></div>
                                        <div class="user-meta">
                                            <span><i class="fas fa-map-marker-alt me-1"></i> 上海市</span>
                                            <span><i class="fas fa-birthday-cake me-1"></i> 25岁</span>
                                            <span><i class="fas fa-clock me-1"></i> 3天前活跃</span>
                                        </div>
                                        <p class="user-bio">古典音乐爱好者，钢琴八级。平时喜欢参加交响音乐会，也在学习作曲。希望找到可以一起讨论音乐、分享乐谱的朋友。</p>
                                        
                                        <div class="interests">
                                            <span class="interest-tag common">古典音乐</span>
                                            <span class="interest-tag">钢琴</span>
                                            <span class="interest-tag">作曲</span>
                                            <span class="interest-tag common">音乐会</span>
                                            <span class="interest-tag">乐谱收藏</span>
                                        </div>
                                        
                                        <div class="contact-actions">
                                            <button class="btn btn-message">
                                                <i class="fas fa-comment"></i> 发消息
                                            </button>
                                            <button class="btn btn-friend">
                                                <i class="fas fa-user-plus"></i> 加为好友
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 用户3 -->
                    <div class="col-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="user-info">
                                    <img src="https://picsum.photos/id/1074/200/200" alt="用户头像" class="avatar">
                                    <div class="user-details">
                                        <div class="user-name">王乐队 <span class="match-badge">匹配度 87%</span></div>
                                        <div class="user-meta">
                                            <span><i class="fas fa-map-marker-alt me-1"></i> 广州市</span>
                                            <span><i class="fas fa-birthday-cake me-1"></i> 32岁</span>
                                            <span><i class="fas fa-clock me-1"></i> 昨天活跃</span>
                                        </div>
                                        <p class="user-bio">摇滚乐队主唱，同时也是音乐博主，经常分享现场演出视频和音乐评论。寻找音乐伙伴和爱好者，一起交流音乐心得。</p>
                                        
                                        <div class="interests">
                                            <span class="interest-tag">摇滚乐</span>
                                            <span class="interest-tag common">现场演出</span>
                                            <span class="interest-tag">音乐评论</span>
                                            <span class="interest-tag">吉他</span>
                                            <span class="interest-tag">音乐制作</span>
                                        </div>
                                        
                                        <div class="contact-actions">
                                            <button class="btn btn-message">
                                                <i class="fas fa-comment"></i> 发消息
                                            </button>
                                            <button class="btn btn-friend">
                                                <i class="fas fa-user-plus"></i> 加为好友
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 用户4 -->
                    <div class="col-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="user-info">
                                    <img src="https://picsum.photos/id/1062/200/200" alt="用户头像" class="avatar">
                                    <div class="user-details">
                                        <div class="user-name">刘DJ <span class="match-badge">匹配度 82%</span></div>
                                        <div class="user-meta">
                                            <span><i class="fas fa-map-marker-alt me-1"></i> 深圳市</span>
                                            <span><i class="fas fa-birthday-cake me-1"></i> 29岁</span>
                                            <span><i class="fas fa-clock me-1"></i> 1周前活跃</span>
                                        </div>
                                        <p class="user-bio">电子音乐制作人兼DJ，擅长House和Techno风格。定期参加国内外电子音乐节，希望认识同样喜欢电子音乐的朋友交流创作。</p>
                                        
                                        <div class="interests">
                                            <span class="interest-tag">电子音乐</span>
                                            <span class="interest-tag">DJ</span>
                                            <span class="interest-tag">音乐制作</span>
                                            <span class="interest-tag common">音乐 festivals</span>
                                        </div>
                                        
                                        <div class="contact-actions">
                                            <button class="btn btn-message">
                                                <i class="fas fa-comment"></i> 发消息
                                            </button>
                                            <button class="btn btn-friend">
                                                <i class="fas fa-user-plus"></i> 加为好友
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 分页 -->
                <nav aria-label="Page navigation">
                    <ul class="pagination">
                        <li class="page-item disabled">
                            <a class="page-link" href="#" tabindex="-1" aria-disabled="true">上一页</a>
                        </li>
                        <li class="page-item active"><a class="page-link" href="#">1</a></li>
                        <li class="page-item"><a class="page-link" href="#">2</a></li>
                        <li class="page-item"><a class="page-link" href="#">3</a></li>
                        <li class="page-item">
                            <a class="page-link" href="#">下一页</a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-md-4 footer-col">
                    <h3 class="footer-title">友趣</h3>
                    <p>友趣是一个基于兴趣的社交平台，帮助你找到志同道合的朋友，一起分享快乐，探索世界。</p>
                </div>
                
                <div class="col-md-2 footer-col">
                    <h3 class="footer-title">平台功能</h3>
                    <ul class="footer-links">
                        <li><a href="#">交友推荐</a></li>
                        <li><a href="#">兴趣小组</a></li>
                        <li><a href="#">活动中心</a></li>
                        <li><a href="#">兴趣测试</a></li>
                        <li><a href="#">话题讨论</a></li>
                    </ul>
                </div>
                
                <div class="col-md-2 footer-col">
                    <h3 class="footer-title">关于我们</h3>
                    <ul class="footer-links">
                        <li><a href="#">平台介绍</a></li>
                        <li><a href="#">团队成员</a></li>
                        <li><a href="#">加入我们</a></li>
                        <li><a href="#">联系方式</a></li>
                        <li><a href="#">用户反馈</a></li>
                    </ul>
                </div>
                
                <div class="col-md-4 footer-col">
                    <h3 class="footer-title">联系我们</h3>
                    <ul class="footer-links">
                        <li><i class="fas fa-envelope me-2"></i> contact@youqu.com</li>
                        <li><i class="fas fa-phone me-2"></i> 400-123-4567</li>
                        <li><i class="fas fa-map-marker-alt me-2"></i> 北京市朝阳区创意园区A座501</li>
                    </ul>
                </div>
            </div>
            
            <div class="copyright">
                &copy; 2023 友趣社交平台 版权所有 | 京ICP备12345678号
            </div>
        </div>
    </footer>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 匹配度滑块交互
        const matchRange = document.getElementById('matchRange');
        const rangeValue = document.getElementById('rangeValue');
        
        matchRange.addEventListener('input', function() {
            rangeValue.textContent = `${this.value}% 及以上`;
        });
        
        // 地理位置选择交互
        const locationDistance = document.getElementById('locationDistance');
        const distanceSlider = document.getElementById('distanceSlider');
        
        locationDistance.addEventListener('change', function() {
            if (this.checked) {
                distanceSlider.style.display = 'block';
            } else {
                distanceSlider.style.display = 'none';
            }
        });
        
        // 细分兴趣显示更多/收起
        const showMoreInterests = document.getElementById('showMoreInterests');
        let showingMore = false;
        
        showMoreInterests.addEventListener('click', function() {
            // 这里可以添加更多兴趣选项的显示/隐藏逻辑
            showingMore = !showingMore;
            if (showingMore) {
                this.innerHTML = '收起 <i class="fas fa-chevron-up"></i>';
                // 实际应用中，这里可以动态添加更多兴趣选项
            } else {
                this.innerHTML = '显示更多 <i class="fas fa-chevron-down"></i>';
                // 实际应用中，这里可以隐藏额外的兴趣选项
            }
        });
        
        // 兴趣标签筛选交互
        const tagFilters = document.querySelectorAll('.tag-filter');
        tagFilters.forEach(tag => {
            tag.addEventListener('click', function() {
                this.classList.toggle('active');
            });
        });
        
        // 重置筛选按钮
        document.querySelector('.btn-reset').addEventListener('click', function() {
            // 重置兴趣标签
            tagFilters.forEach(tag => {
                tag.classList.remove('active');
            });
            // 默认选中第一个兴趣标签
            if (tagFilters.length > 0) {
                tagFilters[0].classList.add('active');
            }
            
            // 重置匹配度滑块
            matchRange.value = 70;
            rangeValue.textContent = '70% 及以上';
            
            // 重置地理位置选择
            document.getElementById('locationAny').checked = true;
            distanceSlider.style.display = 'none';
            
            // 重置表单复选框和下拉菜单
            document.getElementById('activeMonthly').checked = false;
            document.getElementById('interest3').checked = false;
            document.getElementById('interest4').checked = false;
            document.getElementById('interest5').checked = false;
            
            // 重置排序方式
            document.querySelector('.sort-select').selectedIndex = 0;
        });
        
        // 应用筛选按钮
        document.querySelector('.btn-apply').addEventListener('click', function() {
            // 获取当前筛选条件
            const activeTags = Array.from(tagFilters)
                .filter(tag => tag.classList.contains('active'))
                .map(tag => tag.textContent.trim());
                
            const matchPercentage = matchRange.value;
            
            // 在实际应用中，这里会发送筛选条件到服务器
            console.log('应用筛选条件:', {
                interests: activeTags,
                matchPercentage: matchPercentage,
                location: document.querySelector('input[name="location"]:checked').id,
                // 其他筛选条件...
            });
            
            // 显示筛选成功提示
            alert('筛选条件已应用，共找到 24 位符合条件的用户');
        });
        
        // 加为好友按钮交互
        document.querySelectorAll('.btn-friend').forEach(btn => {
            btn.addEventListener('click', function() {
                const originalText = this.innerHTML;
                this.innerHTML = '<i class="fas fa-check"></i> 请求已发送';
                this.disabled = true;
                this.style.backgroundColor = 'var(--success)';
                
                // 2秒后恢复原始状态（实际应用中可能不需要）
                setTimeout(() => {
                    this.innerHTML = originalText;
                    this.disabled = false;
                    this.style.backgroundColor = '';
                }, 2000);
            });
        });
    </script>
</body>
</html>

